#ifndef __FIVE_KERNEL_H__
#define __FIVE_KERNEL_H__

#include "ai.h"

enum CheckStatus {
	EMPTY,
	BLACK,
	WHITE
};

extern int ** global_board;
enum{
	SAVE_STEP,
	PREV_STEP,
	NEXT_STEP,
	RESET,
	SAVE_FILE,
	LOAD_FILE
};
int krnl_init();
void krnl_reset();
int krnl_get_turn();
void krnl_get_last(int *x, int *y);
void krnl_get_last_pos(int *x, int *y);	//渲染版本
int krnl_checker_put(int tn, int x, int y, int *win);
void steps(int x, int y, int action, char *data);
//int judge(int **board, int width);
#endif
